import {nanoid} from "nanoid"

export const getTempId=()=>{
    let userTempId = localStorage.getItem("tempId")

    if(!userTempId){
        userTempId = nanoid()
        localStorage.setItem("tempId",userTempId)
    }
    return userTempId
}